package com.group.activity.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.group.common.utils.PageUtils;
import com.group.common.utils.Query;

import com.group.activity.dao.SecondKillCommodityDao;
import com.group.activity.entity.SecondKillCommodityEntity;
import com.group.activity.service.SecondKillCommodityService;


@Service("secondKillCommodityService")
public class SecondKillCommodityServiceImpl extends ServiceImpl<SecondKillCommodityDao, SecondKillCommodityEntity> implements SecondKillCommodityService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SecondKillCommodityEntity> page = this.page(
                new Query<SecondKillCommodityEntity>().getPage(params),
                new QueryWrapper<SecondKillCommodityEntity>()
        );

        return new PageUtils(page);
    }

}